package com.lingchen.dao;

import com.lingchen.entity.Error;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Author    lingchen
 * Email     838878458@qq.com
 * Time      2018/2/28
 * Function  错题
 */
@Repository
public interface ErrorDao {

    /**
     * 收藏错题
     */
    int insertError(Error... errors);

    /**
     * 查询错题集
     */
    List<Error> selectError(@Param("userName") long userName, @Param("courseId") String courseId);
}
